BIN = .
INC = -I../../common/include/ \
	  -I../include/

LIB_INC = -L/home/w/lib64/ -L../../common/lib/

#LIBS = -lpthread -ldl -ltime_recorder

OBJS = mem_pool.o main.o

TGTS = $(BIN)/mem_pool

CXXFLAGS = -g -Wall -DLINUX

CFLAGS = -g -DTRACE_TIME -Wall -fPIC

CC = g++

.PHONY  : all clean 
all: $(TGTS)

.cpp.o:
	$(CC) $(CFLAGS) -c $< -o $@ $(INC)

$(TGTS): $(OBJS) 
	$(CC) $(CXXFLAGS) $(OBJS) -o $(TGTS) $(INC) $(LIB_INC) $(LIBS)

clean:
	$(RM) $(OBJS) $(TGTS)

